package com.discovery.main;

import java.util.Arrays;
import java.util.List;

public class Processor implements StorageEntity
{
   private String spidentifiers = null;
   List<Port>     ports         = null;

   public String getSpidentifiers()
   {
      return spidentifiers;
   }

   public void setSpidentifiers(String spidentifiers)
   {
      this.spidentifiers = spidentifiers;
   }

   public List<Port> getPorts()
   {
      return ports;
   }

   public void setPorts(List<Port> ports)
   {
      this.ports = ports;
   }

   /**
    * Returns a Processor with one port
    *
    * @return
    */
   public Processor getDummyProcessor()
   {
      Processor processor = new Processor();
      processor.setSpidentifiers("11111");

      Port p = new Port();
      processor.setPorts(Arrays.asList(new Port[] { p.getDummyPort() }));

      return processor;
   }
}
